<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>
        全部分类
        -
        美尚触屏版
    </title>
    <meta name="author" content="m.jd.com">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Expires" content="-1">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="stylesheet" type="text/css" href="css/base2013.css" charset="gbk">
    <link href="css/ectouch.css" rel="stylesheet" type="text/css">

    <link rel="stylesheet" type="text/css" href="css/all_html5.css" charset="gbk">


    <link rel="apple-touch-icon-precomposed" href="http://m.jd.com/images/apple-touch-icon.png">
    <script type="text/javascript">
        var _winLocation = window.location.href;//获得当前页面的路径，根据路径规则进行逐页替换
        var _isWebKit = '__proto__' in {};//是否是webkit内核
        if (_isWebKit) {//如果是webkit内核，则分模块使用zepto
            //要使用zeptojs的路径列表，可以做为分模块替换的开关
            var _locationList = new Array();
            //活动模块
            _locationList.push('/activity/proActList');
            _locationList.push('/activity/proActWareList');
            _locationList.push('/activity/list');
            //商品分类模块
            _locationList.push('/category/');
            //京东快讯模块
            _locationList.push('/newslist.html');
            _locationList.push('/newslist/');
            _locationList.push('/news/');
            //机票模块
            _locationList.push('/airline/');
            //酒店模块
            _locationList.push('/hotel/');
            //团购模块
            _locationList.push('/tuan/');
            //首页相关
            _locationList.push('/hotbrand.html');//品牌馆
            //商品筛选相关
            _locationList.push('/ware/expandSort.action');
            _locationList.push('/ware/categoryFilter.action');
            _locationList.push('/ware/search.action');
            _locationList.push('/products/');

            _locationList.push('/notice/');//通告模块
            _locationList.push('/coupons/');//随地惠模块
            _locationList.push('/chongzhi/');//手机充值模块
            _locationList.push('/comment/');//手机推荐模块
            _locationList.push('/pay/');//支付
            _locationList.push('/order/');//订单
            _locationList.push('/norder/');//订单
            var _needReplace = false;
            //如果当前路径符合要使用的路径规则，则进行替换
            for (var i = 0; i < _locationList.length; i++) {
                if (_winLocation.indexOf(_locationList[i]) != -1) {
                    _needReplace = true;
                    break;
                }
            }
            //如果是首页的话，则使用zepto
            var _tmp = _winLocation.replace(/(^http:\/\/)|(\/*$)/g, '');
            if (_tmp.indexOf('/') < 0 || (_tmp.split('/').length <= 2 && _tmp.indexOf('/index') >= 0)) {
                _needReplace = true;
            }
            //如果是商品详情页的话，则使用zepto
            var _dlocationList = new Array();
            _dlocationList.push(/\/product\/([0-9]+)\.html/);
            _dlocationList.push(/\/orderComment\/([0-9]+)\.html/);
            _dlocationList.push(/\/consultations\/([0-9]+)\.html/);
            _dlocationList.push(/\/consultations\/([0-9]+)-([0-9]+)\.html/);
            _dlocationList.push(/\/comments\/([0-9]+)\.html/);
            for (var i = 0, len = _dlocationList.length; i < len; i++) {
                if (_dlocationList[i].test(_winLocation)) {
                    _needReplace = true;
                    break;
                }
            }
            if (_needReplace) {
                document.write('<script src="js/zepto.min.js"><\/script>');
                document.write('<script type="text/javascript">window.jQuery=window.Zepto;<\/script>');
            } else {
                document.write('<script src="js/mobile/jquery-1.6.2.min.js"><\/script>');
            }
        } else {//如果是非webkit内核直接使用jquery
            document.write('<script src="js/mobile/jquery-1.6.2.min.js"><\/script>');
        }
    </script>
    <script src="js/zepto.js"></script>
    <script type="text/javascript">window.jQuery = window.Zepto;</script>
    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript" src="js/spin.js"></script>
    <style></style>
    <script charset="utf-8" type="text/javascript" src="js/installapp.js"></script>
</head>

<body ryt14337="1" id="body">
<header>
    <div class="new-header" id="header">
        <div class="header_l">
            <a href="javascript:pageBack();" class="ico_10">返回</a>
        </div>


        <h2>商品分类 </h2>
        <a href="javascript:void(0)" id="btnJdkey" class="new-a-jd"><span>美尚键</span></a>
    </div>
    <div class="new-jd-tab" style="display:none" id="jdkey">
        <div class="new-tbl-type">
            <a href="index.php" class="new-tbl-cell">
                <span class="icon">首页</span>

                <p style="color:#6e6e6e;">首页</p>
            </a>
            <a href="cat_all.php" class="new-tbl-cell">
                <span class="icon2 on">分类搜索</span>

                <p class="on" style="color:#6e6e6e;">分类搜索</p>
            </a>
            <a href="flow.php" id="html5_cart" class="new-tbl-cell">
                <span class="icon3">购物车</span>

                <p style="color:#6e6e6e;">购物车</p>
            </a>
            <a href="user.php" class="new-tbl-cell">
                <span class="icon4">我的美尚</span>

                <p style="color:#6e6e6e;">我的美尚</p>
            </a>
        </div>
    </div>
</header>
<form action="search.php" id="searchForm">
    <div class="new-cate-srch">
        <div class="new-srch-box">
            <input name="keywords" id="newkeyword" required="" class="new-srch-input" value="美尚" type="text">
            <!--<a href="javascript:void(0);" target="_self" onclick="$('#searchForm').submit();" class="new-s-close"></a>-->

            <a href="javascript:void(0)" target="_self" onclick="$('#searchForm').submit();" class="new-s-srch"><span></span></a>
        </div>
        <div class="new-srch-lst" id="shelper" style="display:none">
        </div>
    </div>
</form>

<div class="new-ct">
<div class="new-category">
<ul class="new-category-lst">

    <!--分类遍历 start-->
    {foreach from=$pcat_array item=attr}
    <li class="new-category-li">
        <a href="javascript:void(0)" id="1315" class="new-category-a"><span class="icon"></span>{$attr.name}</a>
        <ul class="new-category2-lst" id="category1315" style="display:none">
            <li class="new-category2-li">
                {foreach from=$attr.cat_id item=val}
                <a href="{$val.url}"
                   class="new-category2-a"><span class="new-bar"></span>{$val.name}</a>

                {/foreach}
            </li>

        </ul>
    </li>
    {/foreach}


    <!--分类遍历   end-->
<!--<li class="new-category-li">-->
    <!--<a href="javascript:void(0)" id="1315" class="new-category-a"><span class="icon"></span>服饰内衣</a>-->
    <!--<ul class="new-category2-lst" id="category1315" style="display:none">-->
        <!--<li class="new-category2-li">-->
            <!--<a href="http://m.jd.com/products/1315-1342-000.html?resourceType=&amp;resourceValue="-->
               <!--class="new-category2-a"><span class="new-bar"></span>男装</a>-->
            <!--<a href="http://m.jd.com/products/1315-1343-000.html?resourceType=&amp;resourceValue="-->
               <!--class="new-category2-a"><span class="new-bar"></span>女装</a>-->
            <!--<a href="http://m.jd.com/products/1315-1345-000.html?resourceType=&amp;resourceValue="-->
               <!--class="new-category2-a"><span class="new-bar"></span>内衣</a>-->
        <!--</li>-->
        <!--<li class="new-category2-li">-->
            <!--<a href="http://m.jd.com/products/1315-1346-000.html?resourceType=&amp;resourceValue="-->
               <!--class="new-category2-a"><span class="new-bar"></span>服饰配件</a>-->
            <!--<a href="javascript:void(0)" class="new-category2-a"><span class="new-bar"></span></a>-->
            <!--<a href="javascript:void(0)" class="new-category2-a"></a>-->
        <!--</li>-->
    <!--</ul>-->
<!--</li>-->

</ul>
</div>
</div>
<script language="javascript">
    $(function () {
        $("li.new-category-li>a").click(function () {
            var obj = $(this).parent().children().eq(1);
            if (obj.css('display') == 'none') {
                $(".new-category2-lst").hide();
                obj.fadeIn();
                $("li.new-category-li>a").removeClass("new-category-a new-on").addClass("new-category-a");
                $(this).addClass("new-category-a new-on");
            } else {
                obj.fadeOut();
                $("li.new-category-li>a").removeClass("new-category-a new-on").addClass("new-category-a");
                $(this).removeClass("new-category-a new-on").addClass("new-category-a");
            }
        })
    });
</script>

<div style="width: 10px;height: 10px"></div>
<style>
    .login-area {
        padding-bottom: 1.8em;
        text-align: center;
        width: 100%;
        max-width: 640px;
        background-color: #fff;
        margin: 0 auto
    }

    .login-area a {
        color: #666
    }

    .login-area .lg-bar {
        display: inline-block;
        margin: 0 2px;
        color: #666
    }

    .login-area .login {
        padding: 1.55em 1.71em;
        border-bottom: 0px solid #e5e5e5;
        text-align: left
    }

    .new-fl {
        float: left
    }

    .new-fr {
        float: right
    }

    .version {
        padding: .71em 0 5px
    }

    .version a {
        padding: 0 1.16em;
        color: #6e6e6e
    }

    .version a.on {
        color: #e6242b
    }

    .copyright {
        font-size: 12px;
        color: #666
    }
</style>

<div class="login-area" id="footer" style="background: none repeat scroll 0 0 #fff;padding-top:0;padding-bottom:0;">
    <div style="width:100%;margin-bottom: 5px" class="d_center">
        <div class="login" >
            <span class="new-fr"><a href="user.php?act=message_list">反馈</a><span class="lg-bar">|</span><a href="#top">回到顶部</a></span>
        </div>
    </div>
    <div class="version" id="clientArea">
        <a href="javascript:void(0)" class="on">触屏版</a>
        <a href="index.php?computer=1" id="toPcHome">电脑版</a>
    </div>
    <div class="copyright">©mp.p.com</div>
</div>

</body>
</html>